/**
 * Created by Administrator on 2015/8/23.
 */
var winwidth=window.innerWidth;
var winheight=window.innerHeight;
//加载
window.onload=function(){
    scroll();
    document.body.ontouchmove=function(e){//浏览器禁止拖动
        e.preventDefault();
    };

};

function scroll(){
    var scroll=document.getElementsByClassName("scroll");
    for(var i=0;i<scroll.length;i++){
        scroll[i].style.height=winheight*0.8+"px";
        document.getElementsByClassName("scroll")[i].ontouchmove=function(e){
            e.stopPropagation();//允许该内容拖动
        };
    }
}